package com.kerrykidz.workflow.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.kerrykidz.workflow.dao.model.HrmLeaveEntity;
import com.kerrykidz.workflow.vo.SearchParamVo;
import com.rdp.framework.core.dao.mapper.MyBatisSuperMapper;
import com.rdp.framework.exception.RDPException;

@Repository
public interface HrmLeaveEntityMapper extends MyBatisSuperMapper<HrmLeaveEntity>{
	
	/**
	 * 查询请假列表
	 * @param map
	 * @return
	 */
	public List<HrmLeaveEntity> findLeaveList(SearchParamVo searchParam) throws RDPException;
	
	/**
	 * 根据登录用户ID获取实例
	 * @param applyBy
	 * @return
	 * @throws RDPException
	 */
	public List<HrmLeaveEntity> findEntityByApplyBy(@Param("userId") String userId) throws RDPException;
	
}